import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as API from '@/api'

import { Tabs, TabPane, Image, Dropdown, DropdownItem, DropdownMenu, Message, Breadcrumb, BreadcrumbItem } from 'element-ui'
// 全局注册
Vue.use(Image)
Vue.use(TabPane)
Vue.use(Tabs)

Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)

Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  beforeCreate () {
    Vue.prototype.$API = API
    Vue.prototype.$bus = this
    Vue.prototype.$message = Message
  },
  render: h => h(App)
}).$mount('#app')
